package com.gjy.test.aop;

import com.gjy.aop.AuthPermission;
import com.gjy.aop.DataPermission;
import com.gjy.aop.NeedDataPermission;
import org.springframework.stereotype.Component;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-02-03 10:55:12
 */
@Component
public class T1 {

    @AuthPermission(loginToken = "#token", operatePerms = "system:a:add")
    public void t2(Integer token) {
        System.out.println("token = " + token);
    }

    @NeedDataPermission
    public void t1(DataPermission dataPermission, Integer id) {
        System.out.println("Hello " + id);
    }
}
